const { http } = uni.$u


//用户端授权登录

 export const userlogin = (params, config = {}) => http.post('/api/login/userlogin', params, config);

//消息已读未读
 export const newsdetail = (params, config = {}) => http.post('/api/users/newsdetail', params, config);

//用户提现

//更新定位 api/index/updateuserloaction
 export const updateuserloaction = (params, config = {}) => http.post('/api/index/updateuserloaction', params, config);


 export const tixian = (params, config = {}) => http.post('/api/Worker/tixian', params, config);

//用户消息
 export const newslist = (params, config = {}) => http.post('/api/users/newslist', params, config);

//用户端确认完成洗车订单 
 export const querenxcorder = (params, config = {}) => http.post('/api/shop/querenxcorder', params, config);


//师傅申请门店
 export const shopapply = (params, config = {}) => http.post('/api/Worker/shopapply', params, config);
 //商城订单支付
 //用户端申请门店 /api/shop/shopapply
 export const usershopapply = (params, config = {}) => http.post('/api/shop/shopapply', params, config);
 export const dfkpayorder = (params, config = {}) => http.post('/api/shop/dfkpayorder', params, config);
//微信支付  
 export const paycxorder = (params, config = {}) => http.post('/api/shop/paycxorder', params, config);

//用户端首页数据

 export const getuserindex = (params, config = {}) => http.post('/api/index/index', params, config);

//用户端上门洗车分类
 export const categorylist = (params, config = {}) => http.post('/api/index/categorylist', params, config);

//用户端汽车用品 
export const carshop = (params, config = {}) => http.post('/api/index/carshop', params, config);

//用户端我的会员卡
 export const myvip = (params, config = {}) => http.post('/api/users/myvip', params, config);

//用户提交保险   api/Users/insurance
 export const getinsurance = (params, config = {}) => http.post('/api/Users/insurance', params, config);

//用户端年审 
 export const getreview = (params, config = {}) => http.post('/api/Users/review', params, config);

//获取客服电话  
 export const getkefu = (params, config = {}) => http.post('/api/index/kefu', params, config);


//用户会员中心 
 export const usercenter = (params, config = {}) => http.post('/api/users/usercenter', params, config);

//用户余额明细 
export const moneylog = (params, config = {}) => http.post('/api/users/moneylog', params, config);

//用户端充值
export const chargemoney = (params, config = {}) => http.post('/api/shop/chargemoney', params, config);
//用户车辆管理  api/users/carlist   未完成
export const getcarlist = (params, config = {}) => http.post('/api/users/carlist', params, config);

//用户充值卡列表 
export const rechargelist = (params, config = {}) => http.post('/api/users/rechargelist', params, config);

//用户端我的优惠券 
export const mycoupon = (params, config = {}) => http.post('/api/users/mycoupon', params, config);

//用户端编辑用户信息 api/users/edituser  未完成
export const edituser = (params, config = {}) => http.post('/api/users/edituser', params, config);

//用户端我的团队  api/users/myteam  未完成
export const myteam = (params, config = {}) => http.post('/api/users/myteam', params, config);

//用户端我的购物车 
export const carlist = (params, config = {}) => http.post('/api/shop/carlist', params, config);

//规格  获取id
export const guige = (params, config = {}) => http.post('/api/index/guige', params, config);

//用户端添加购物车  api/shop/addcars
export const addcars = (params, config = {}) => http.post('/api/shop/addcars', params, config);

//用户端购物车结算  api/shop/carbuy1
export const carbuy1 = (params, config = {}) => http.post('/api/shop/carbuy1', params, config);

//更新清除购物车用户端 api/shop/editcar
export const editcar = (params, config = {}) => http.post('/api/shop/editcar', params, config);


//用户端购物车计算成功购买商品
export const carbuynow = (params, config = {}) => http.post('/api/shop/carbuynow', params, config);

//用户端我的商城订单 api/shop/orderlist  未完成
export const orderlist = (params, config = {}) => http.post('/api/shop/orderlist', params, config);

//用户端商城订单操作（确认收货，提醒发货，取消订单，没有物流）  api/shop/doorder
export const doorder = (params, config = {}) => http.post('/api/shop/doorder', params, config);

//用户提交订单计算金额 
export const countmoney = (params, config = {}) => http.post('/api/shop/countmoney', params, config);

//用户端联系师傅 
export const getworkermobile = (params, config = {}) => http.post('/api/shop/getworkermobile', params, config);

//用户端商城订单详情
export const shoporderdetail = (params, config = {}) => http.post('/api/shop/shoporderdetail', params, config);

//用户端分享奖励 api/users/shareprize
export const shareprize = (params, config = {}) => http.post('/api/users/shareprize', params, config);

//用户端会员卡详情api/Users/vipdetail
export const vipdetail = (params, config = {}) => http.post('/api/Users/vipdetail', params, config);

//用户端用户地址管理 api/users/address
export const address = (params, config = {}) => http.post('/api/users/address', params, config);

//获取客服电话 api/index/kefu 未完成
export const kefu = (params, config = {}) => http.post('/api/index/kefu', params, config);

//用户端购买年卡 api/shop/buyvip  未完成
export const buyvip = (params, config = {}) => http.post('/api/shop/buyvip', params, config);

//用户端洗车订单列表 api/shop/xcoderlist
export const xcoderlist = (params, config = {}) => http.post('/api/shop/xcoderlist', params, config);

//用户端洗车下单时先获取余额 
export const getpaymoney = (params, config = {}) => http.post('/api/shop/getpaymoney', params, config);


//师傅端登录 api/login/workerlogin
export const workerlogin = (params, config = {}) => http.post('/api/login/workerlogin', params, config);

//用户端师傅认证 api/users/workerapply
export const workerapply = (params, config = {}) => http.post('/api/users/workerapply', params, config);


//师傅端修改密码  api/Worker/changepwd
export const changepwd = (params, config = {}) => http.post('/api/Worker/changepwd', params, config);

//师傅端编辑信息 api/Worker/editavatar  未完成
export const editavatar = (params, config = {}) => http.post('/api/Worker/editavatar', params, config);

//单图上传api/index/uploadimg  未完成
export const uploadimg = (params, config = {}) => http.post('/api/index/uploadimg', params, config);

//师傅端收益报表  api/Worker/incomelog
export const incomelog = (params, config = {}) => http.post('/api/Worker/incomelog', params, config);

//师傅端我的钱包 api/Worker/mywallet
export const mywallet = (params, config = {}) => http.post('/api/Worker/mywallet', params, config);

//师傅端我的页面 api/Worker/mycenter
export const mycenter = (params, config = {}) => http.post('/api/Worker/mycenter', params, config);

//师傅端抢单大厅  api/Worker/orderlists
export const orderlists = (params, config = {}) => http.post('/api/Worker/orderlists', params, config);

//用户端商品详情  api/index/goodsdetail
export const goodsdetail = (params, config = {}) => http.post('/api/index/goodsdetail', params, config);

//用户端立即购买商城用品  api/shop/buynow
export const gbuynow = (params, config = {}) => http.post('/api/shop/buynow', params, config);

//用户端地图位置 api/shop/map
export const map = (params, config = {}) => http.post('/api/shop/map', params, config);

//用户评论订单api/Users/evaluate
export const evaluate = (params, config = {}) => http.post('/api/Users/evaluate', params, config);

//用户端超时订单退款  api/shop/tuikuan
export const tuikuan = (params, config = {}) => http.post('/api/shop/tuikuan', params, config);

//用户端下单洗车  
export const summitorder = (params, config = {}) => http.post('/api/shop/summitorder', params, config);

//用户端下单成功选择 直接发布 还是 指定师傅 
export const workerorpublish = (params, config = {}) => http.post('/api/shop/workerorpublish', params, config);

//师傅端抢单 
export const doworkerorder = (params, config = {}) => http.post('/api/Worker/doworkerorder', params, config);

//用户端取消洗车订单 
export const canclexcorder = (params, config = {}) => http.post('/api/shop/canclexcorder', params, config);

// 用户端取消洗车待接单订单/api/shop/usercancleorder
export const usercancleorder = (params, config = {}) => http.post('/api/shop/usercancleorder', params, config);

//师傅端我的订单  
export const myorderlist = (params, config = {}) => http.post('/api/Worker/myorderlist', params, config);

//师傅接单后的操作  
export const workerdone = (params, config = {}) => http.post('/api/Worker/workerdone', params, config);

//用户端洗车订单详情  
export const xcorderdetail = (params, config = {}) => http.post('/api/shop/xcorderdetail', params, config);


//扫描核销 获取点歌单详情  
export const hexiao = (params, config = {}) => http.post('/api/worker/hexiao', params, config);
//师傅添加 修改 提现账户
export const txcode = (params, config = {}) => http.post('/api/Worker/txcode', params, config);

//师傅端订单详情 api/Worker/worderdetail  
export const worderdetail = (params, config = {}) => http.post('/api/Worker/worderdetail', params, config);


export const mycode = (params, config = {}) => http.post('/api/users/mycode', params, config);


// 用户端申请军属卡 

export const shenqing = (params, config = {}) => http.post('/api/users/shenqing', params, config);

//师傅端语言提醒 
export const gettixing = (params, config = {}) => http.post('/api/worker/gettixing', params, config);


//年审 登录 
export const shlogin = (params, config = {}) => http.post('/api/login/shlogin', params, config);

//年审 退出
export const loginout = (params, config = {}) => http.post('/api/nianshen/loginout', params, config);

// 年审 列表
export const nianlist = (params, config = {}) => http.post('/api/nianshen/nianlist', params, config);

// 年审详情
export const niandetail = (params, config = {}) => http.post('/api/nianshen/niandetail', params, config);


// 年审 审核
export const nianshen = (params, config = {}) => http.post('/api/nianshen/nianshen', params, config);